package com.shopping.service.receive;

import com.shopping.pojo.Receive;

import java.util.Map;

public interface ReceiveService {

    /**
     * 添加收货人
     * @param receive
     * @return
     */
    Map<String, Object> addReceiver(Receive receive);

    /**
     * 删除收货人
     * @param id
     * @return
     */
    Map<String, Object> deleteReceiver(int id);

    /**
     * 显示用户所有收货人
     * @param userId
     * @return
     */
    Map<String, Object> showAllReceivers(int userId);

    /**
     * 显示某一收货人具体信息
     * @param id
     * @return
     */
    Map<String, Object> showOneReceiver(int id);

    /**
     * 修改收货人信息
     * @param receive
     * @return
     */
    Map<String, Object> modifyReceiver(Receive receive);

    /**
     * 根据收货信息 id 查询用户 id
     * @param receiveId
     * @return
     */
    Map<String, Object> selectUserIdById(int receiveId);

}
